//
// Created by yan on 7/7/17.
//

#ifndef DAQSYS_BASEDAQ_H
#define DAQSYS_BASEDAQ_H

#include <sys/bSysNode.h>
#include <daqsys/bDaqMod.h>

#include <iostream>

class BaseDaq : public bSysNode{
public:
    BaseDaq(std::string name);

    int addDaqDevice(std::string deviceName);

    virtual int start() = 0;

    virtual int initcfg() = 0;

    virtual int end() = 0;

protected:

    virtual ssize_t sendData(void* buf,size_t count);

    virtual ssize_t recvData(void* buf,size_t count);

    bDaqMod * daqDev;

};


#endif //DAQSYS_BASEDAQ_H
